Dynomotion

Group: DynoMotion Message: 1785 From: wcarrothers Date: 9/10/2011
Subject: Optical Encoder connecting
I'm wiring in some optical encoders to my Kflop/Kanalog board. Figured I would attach to input A5+ and B5+ on JP2

http://www.potentiometers.com/pdf/600.pdf

That is a link to the data sheet for the encoder.

So basicly connecting the unit to 5v power and the Yellow to channel A5+ and green to channel B5+

From that on the bits 38 and 39 toggel when I rotate the encoder on the I/O screen

Seems to be all ok. Altered the C code so the IO bits are correct, trigger the bits to activate the encoder and can get some movement but most times it would continue counting and fault out (yellow digits in KmotionCNC) for that axis..

Wondering if perhaps I need to add a resistor between A5+ and A5- and B5+ and B5- to properly connect the encoder or something else.

Perhaps just doing this wrong seeing they are not differential (have only A and B output rather then A+A-andB+B-

b.

b.
Group: DynoMotion Message: 1786 From: william Carrothers Date: 9/10/2011
Subject: Re: Optical Encoder connecting
Looking around perhaps I'm missing having a resistor to ground on A+ and B+ wires.  My servo amps had differential outputs that had wires for both A+,A-,B+&B- which I added resistors between the + and -'s
 
b.

--- On Sat, 9/10/11, wcarrothers <wcarrothers@...> wrote:

From: wcarrothers <wcarrothers@...>
Subject: [DynoMotion] Optical Encoder connecting
To: DynoMotion@yahoogroups.com
Date: Saturday, September 10, 2011, 12:34 PM

 
I'm wiring in some optical encoders to my Kflop/Kanalog board. Figured I would attach to input A5+ and B5+ on JP2

http://www.potentiometers.com/pdf/600.pdf

That is a link to the data sheet for the encoder.

So basicly connecting the unit to 5v power and the Yellow to channel A5+ and green to channel B5+

From that on the bits 38 and 39 toggel when I rotate the encoder on the I/O screen

Seems to be all ok. Altered the C code so the IO bits are correct, trigger the bits to activate the encoder and can get some movement but most times it would continue counting and fault out (yellow digits in KmotionCNC) for that axis..

Wondering if perhaps I need to add a resistor between A5+ and A5- and B5+ and B5- to properly connect the encoder or something else.

Perhaps just doing this wrong seeing they are not differential (have only A and B output rather then A+A-andB+B-

b.

b.

Group: DynoMotion Message: 1787 From: TK Date: 9/10/2011
Subject: Re: Optical Encoder connecting
It won't work connecting single ended signals to differential inputs. You can't just leave the other input unconnected. The way differential inputs work is the polarity between the two inputs has to switch back and forth. A resistor won't do this. There is already an internal 470 ohm resistor between the + and - inputs on Kanalog.

You can bypass Kanalog's differential receivers and connect directly to KFLOP's single ended inputs by unplugging JP5 from Kanalog. 

Another option is to buy encoder cables that have a single ended to differential converter module in them. 

TK

On Sep 10, 2011, at 9:34 AM, "wcarrothers" <wcarrothers@...> wrote:

 

I'm wiring in some optical encoders to my Kflop/Kanalog board. Figured I would attach to input A5+ and B5+ on JP2

http://www.potentiometers.com/pdf/600.pdf

That is a link to the data sheet for the encoder.

So basicly connecting the unit to 5v power and the Yellow to channel A5+ and green to channel B5+

From that on the bits 38 and 39 toggel when I rotate the encoder on the I/O screen

Seems to be all ok. Altered the C code so the IO bits are correct, trigger the bits to activate the encoder and can get some movement but most times it would continue counting and fault out (yellow digits in KmotionCNC) for that axis..

Wondering if perhaps I need to add a resistor between A5+ and A5- and B5+ and B5- to properly connect the encoder or something else.

Perhaps just doing this wrong seeing they are not differential (have only A and B output rather then A+A-andB+B-

b.

b.

Group: DynoMotion Message: 1789 From: william Carrothers Date: 9/10/2011
Subject: Re: Optical Encoder connecting
Cuirous if Mach is still able to use the Parallel port for I/O.  That way I could use my pendant I built for my other machine (which has similar encoders) to this one that way.
 
Just got these encoders from some equipment I took appart and hoped I could toss them in.
 
b


--- On Sat, 9/10/11, TK <tk@...> wrote:

From: TK <tk@...>
Subject: Re: [DynoMotion] Optical Encoder connecting
To: "DynoMotion@yahoogroups.com" <DynoMotion@yahoogroups.com>
Date: Saturday, September 10, 2011, 1:16 PM

 
It won't work connecting single ended signals to differential inputs. You can't just leave the other input unconnected. The way differential inputs work is the polarity between the two inputs has to switch back and forth. A resistor won't do this. There is already an internal 470 ohm resistor between the + and - inputs on Kanalog.

You can bypass Kanalog's differential receivers and connect directly to KFLOP's single ended inputs by unplugging JP5 from Kanalog. 

Another option is to buy encoder cables that have a single ended to differential converter module in them. 

TK

On Sep 10, 2011, at 9:34 AM, "wcarrothers" <wcarrothers@...> wrote:

 
I'm wiring in some optical encoders to my Kflop/Kanalog board. Figured I would attach to input A5+ and B5+ on JP2

http://www.potentiometers.com/pdf/600.pdf

That is a link to the data sheet for the encoder.

So basicly connecting the unit to 5v power and the Yellow to channel A5+ and green to channel B5+

From that on the bits 38 and 39 toggel when I rotate the encoder on the I/O screen

Seems to be all ok. Altered the C code so the IO bits are correct, trigger the bits to activate the encoder and can get some movement but most times it would continue counting and fault out (yellow digits in KmotionCNC) for that axis..

Wondering if perhaps I need to add a resistor between A5+ and A5- and B5+ and B5- to properly connect the encoder or something else.

Perhaps just doing this wrong seeing they are not differential (have only A and B output rather then A+A-andB+B-

b.

b.

Group: DynoMotion Message: 1790 From: Tom Kerekes Date: 9/10/2011
Subject: Re: Optical Encoder connecting
Hi Bill,
 
No you can't use the Parallel Port as there is no Mach3 Parallel Port Kernel Driver when using KFLOP.  You can wire the encoders directly up to KFLOP and use them as an MPG.  That has the advantage of quick real-time response a KFLOP handles the motion directly without involving the PC, Windows, USB, etc...
 
Regards
TK

--- On Sat, 9/10/11, william Carrothers <wcarrothers@...> wrote:

From: william Carrothers <wcarrothers@...>
Subject: Re: [DynoMotion] Optical Encoder connecting
To: DynoMotion@yahoogroups.com
Date: Saturday, September 10, 2011, 11:21 AM

 
Cuirous if Mach is still able to use the Parallel port for I/O.  That way I could use my pendant I built for my other machine (which has similar encoders) to this one that way.
 
Just got these encoders from some equipment I took appart and hoped I could toss them in.
 
b


--- On Sat, 9/10/11, TK <tk@...> wrote:

From: TK <tk@...>
Subject: Re: [DynoMotion] Optical Encoder connecting
To: "DynoMotion@yahoogroups.com" <DynoMotion@yahoogroups.com>
Date: Saturday, September 10, 2011, 1:16 PM

 
It won't work connecting single ended signals to differential inputs. You can't just leave the other input unconnected. The way differential inputs work is the polarity between the two inputs has to switch back and forth. A resistor won't do this. There is already an internal 470 ohm resistor between the + and - inputs on Kanalog.

You can bypass Kanalog's differential receivers and connect directly to KFLOP's single ended inputs by unplugging JP5 from Kanalog. 

Another option is to buy encoder cables that have a single ended to differential converter module in them. 

TK

On Sep 10, 2011, at 9:34 AM, "wcarrothers" <wcarrothers@...> wrote:

 
I'm wiring in some optical encoders to my Kflop/Kanalog board. Figured I would attach to input A5+ and B5+ on JP2

http://www.potentiometers.com/pdf/600.pdf

That is a link to the data sheet for the encoder.

So basicly connecting the unit to 5v power and the Yellow to channel A5+ and green to channel B5+

From that on the bits 38 and 39 toggel when I rotate the encoder on the I/O screen

Seems to be all ok. Altered the C code so the IO bits are correct, trigger the bits to activate the encoder and can get some movement but most times it would continue counting and fault out (yellow digits in KmotionCNC) for that axis..

Wondering if perhaps I need to add a resistor between A5+ and A5- and B5+ and B5- to properly connect the encoder or something else.

Perhaps just doing this wrong seeing they are not differential (have only A and B output rather then A+A-andB+B-

b.

b.

Group: DynoMotion Message: 1791 From: william Carrothers Date: 9/10/2011
Subject: Re: Optical Encoder connecting
Yep..  I see that should be easy to do.  Already made up the modular connector to plut into JP5 and making a breakout board.  Looks like that will work perfect and be easy to break out to the pendant.
 
Is there anything ya can't do with the K or Kanalog..hehe
 
 
Just was curious about mixing parallel in more then anything else..
b.

--- On Sat, 9/10/11, Tom Kerekes <tk@...> wrote:

From: Tom Kerekes <tk@...>
Subject: Re: [DynoMotion] Optical Encoder connecting
To: DynoMotion@yahoogroups.com
Date: Saturday, September 10, 2011, 2:48 PM

 
Hi Bill,
 
No you can't use the Parallel Port as there is no Mach3 Parallel Port Kernel Driver when using KFLOP.  You can wire the encoders directly up to KFLOP and use them as an MPG.  That has the advantage of quick real-time response a KFLOP handles the motion directly without involving the PC, Windows, USB, etc...
 
Regards
TK

--- On Sat, 9/10/11, william Carrothers <wcarrothers@...> wrote:

From: william Carrothers <wcarrothers@...>
Subject: Re: [DynoMotion] Optical Encoder connecting
To: DynoMotion@yahoogroups.com
Date: Saturday, September 10, 2011, 11:21 AM

 
Cuirous if Mach is still able to use the Parallel port for I/O.  That way I could use my pendant I built for my other machine (which has similar encoders) to this one that way.
 
Just got these encoders from some equipment I took appart and hoped I could toss them in.
 
b


--- On Sat, 9/10/11, TK <tk@...> wrote:

From: TK <tk@...>
Subject: Re: [DynoMotion] Optical Encoder connecting
To: "DynoMotion@yahoogroups.com" <DynoMotion@yahoogroups.com>
Date: Saturday, September 10, 2011, 1:16 PM

 
It won't work connecting single ended signals to differential inputs. You can't just leave the other input unconnected. The way differential inputs work is the polarity between the two inputs has to switch back and forth. A resistor won't do this. There is already an internal 470 ohm resistor between the + and - inputs on Kanalog.

You can bypass Kanalog's differential receivers and connect directly to KFLOP's single ended inputs by unplugging JP5 from Kanalog. 

Another option is to buy encoder cables that have a single ended to differential converter module in them. 

TK

On Sep 10, 2011, at 9:34 AM, "wcarrothers" <wcarrothers@...> wrote:

 
I'm wiring in some optical encoders to my Kflop/Kanalog board. Figured I would attach to input A5+ and B5+ on JP2

http://www.potentiometers.com/pdf/600.pdf

That is a link to the data sheet for the encoder.

So basicly connecting the unit to 5v power and the Yellow to channel A5+ and green to channel B5+

From that on the bits 38 and 39 toggel when I rotate the encoder on the I/O screen

Seems to be all ok. Altered the C code so the IO bits are correct, trigger the bits to activate the encoder and can get some movement but most times it would continue counting and fault out (yellow digits in KmotionCNC) for that axis..

Wondering if perhaps I need to add a resistor between A5+ and A5- and B5+ and B5- to properly connect the encoder or something else.

Perhaps just doing this wrong seeing they are not differential (have only A and B output rather then A+A-andB+B-

b.

b.

Group: DynoMotion Message: 1792 From: Wcarrothers Date: 9/10/2011
Subject: Re: Optical Encoder connecting
Wow..  Wiring the encoder to GP5 worked like a charm.  The response to the dials os also spot on!!!!   No lag like I used to get with the smooth stepper.  Just perfect..  Have some more wiring to do now though..

B.



On Sep 10, 2011, at 2:48 PM, Tom Kerekes <tk@...> wrote:

 

Hi Bill,
 
No you can't use the Parallel Port as there is no Mach3 Parallel Port Kernel Driver when using KFLOP.  You can wire the encoders directly up to KFLOP and use them as an MPG.  That has the advantage of quick real-time response a KFLOP handles the motion directly without involving the PC, Windows, USB, etc...
 
Regards
TK

--- On Sat, 9/10/11, william Carrothers <wcarrothers@...> wrote:

From: william Carrothers <wcarrothers@...>
Subject: Re: [DynoMotion] Optical Encoder connecting
To: DynoMotion@yahoogroups.com
Date: Saturday, September 10, 2011, 11:21 AM

 
Cuirous if Mach is still able to use the Parallel port for I/O.  That way I could use my pendant I built for my other machine (which has similar encoders) to this one that way.
 
Just got these encoders from some equipment I took appart and hoped I could toss them in.
 
b


--- On Sat, 9/10/11, TK <tk@...> wrote:

From: TK <tk@...>
Subject: Re: [DynoMotion] Optical Encoder connecting
To: "DynoMotion@yahoogroups.com" <DynoMotion@yahoogroups.com>
Date: Saturday, September 10, 2011, 1:16 PM

 
It won't work connecting single ended signals to differential inputs. You can't just leave the other input unconnected. The way differential inputs work is the polarity between the two inputs has to switch back and forth. A resistor won't do this. There is already an internal 470 ohm resistor between the + and - inputs on Kanalog.

You can bypass Kanalog's differential receivers and connect directly to KFLOP's single ended inputs by unplugging JP5 from Kanalog. 

Another option is to buy encoder cables that have a single ended to differential converter module in them. 

TK

On Sep 10, 2011, at 9:34 AM, "wcarrothers" <wcarrothers@...> wrote:

 
I'm wiring in some optical encoders to my Kflop/Kanalog board. Figured I would attach to input A5+ and B5+ on JP2

http://www.potentiometers.com/pdf/600.pdf

That is a link to the data sheet for the encoder.

So basicly connecting the unit to 5v power and the Yellow to channel A5+ and green to channel B5+

From that on the bits 38 and 39 toggel when I rotate the encoder on the I/O screen

Seems to be all ok. Altered the C code so the IO bits are correct, trigger the bits to activate the encoder and can get some movement but most times it would continue counting and fault out (yellow digits in KmotionCNC) for that axis..

Wondering if perhaps I need to add a resistor between A5+ and A5- and B5+ and B5- to properly connect the encoder or something else.

Perhaps just doing this wrong seeing they are not differential (have only A and B output rather then A+A-andB+B-

b.

b.